package top.healthylife.gateway.platform.jg.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.jg.api.util.JGHttpUtil;
import top.healthylife.gateway.platform.jg.dto.antifraud.req.JGReqAntiFraudDto;
import top.healthylife.gateway.platform.jg.dto.antifraud.res.JGResAntiFraudDto;

/**
 * 极光反欺诈v2定制（金融版）
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "极光反欺诈v2定制[金融版]" , info = "极光反欺诈v2定制[金融版]")
public class JGAntifraudApi implements ParentFace<JGReqAntiFraudDto, JGResAntiFraudDto> {

    private static final String API_NAME = "/v1/ctm/common/common_finance_anti_fraud_v2";

    @Override
    public JGResAntiFraudDto execute(JGReqAntiFraudDto reqDto){
        return JGHttpUtil.httpGetRequest(reqDto,API_NAME, JGResAntiFraudDto.class);
    }
}
